package com.zyn.rsgl.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zyn.rsgl.pojo.Schedule;
import com.zyn.rsgl.pojo.ScheduleDetail;
import com.zyn.rsgl.utils.commonResult.R;

import java.time.LocalDateTime;
import java.util.Map;

/**
 * <p>
 * 排班表 服务类
 * </p>
 *
 * @author zcs
 * @since 2025-02-28
 */

public interface ScheduleService extends IService<Schedule> {
    R listSchedulesPage(Integer pageNum, Integer pageSize, String name, String description);

    R listDetailsPage(String scheduleId, Integer pageNum, Integer pageSize, String dayOfWeek, String startTime, String endTime);

    boolean detailExists(ScheduleDetail detail);

    ScheduleDetail getScheduleDetailByDate(String userId, LocalDateTime date);
}